package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.api.platform.dto.it.NetworkManageExportFull;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NetworkRowMapper implements RowMapper<NetworkManageExportFull> {

    @Override
    public NetworkManageExportFull mapRow(ResultSet rs, int rowNum) throws SQLException {
        NetworkManageExportFull networkManageExportFull = new NetworkManageExportFull();
        networkManageExportFull.setAssetIp(rs.getString("asset_ip"));
        networkManageExportFull.setAssetUse(rs.getString("asset_use"));
        networkManageExportFull.setBrand(rs.getString("brand"));
        networkManageExportFull.setBrandType(rs.getString("brand_type"));
        networkManageExportFull.setBrandSys(rs.getString("brand_sys"));
        networkManageExportFull.setBrandSn(rs.getString("brand_sn"));
        networkManageExportFull.setCapitalType(rs.getString("capital_type"));
        networkManageExportFull.setCapitalTyped(rs.getString("capital_typed"));
        networkManageExportFull.setMachineRoom(rs.getString("machine_room"));
        networkManageExportFull.setMachineCab(rs.getString("machine_cab"));
        networkManageExportFull.setMachineStatus(rs.getString("machine_status"));
        networkManageExportFull.setMachineSup(rs.getString("machine_sup"));
        networkManageExportFull.setStartTime(rs.getString("start_time"));
        networkManageExportFull.setEndTime(rs.getString("end_time"));
        networkManageExportFull.setName(rs.getString("name"));
        networkManageExportFull.setDepartment(rs.getString("department"));

        return networkManageExportFull;
    }


}
